package org.liuchang.service;

import org.liuchang.dao.PayMapper;
import org.liuchang.model.Pay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayService {

    @Autowired
    private PayMapper payMapper;

    public int insert(Pay pay) {
        return payMapper.insert(pay);
    }

    public Pay selectById(Integer id){
        return payMapper.selectByPrimaryKey(id);
    }
}
